{include file='common/head'}
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">演示</a>
        <a href="">
          <cite>黑名单</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <div class="layui-input-inline">
                <select name="cateid">
                    <option>搜索关键词</option>
                    <option>c</option>
                    <option>accc</option>
                    <option>c</option>
                </select>
            </div>
            <input type="text" name="name"  placeholder="请输入关键词" autocomplete="off" class="layui-input">
            <span>注册时间</span><input class="layui-input" placeholder="开始日" name="start" id="start">至
            <input class="layui-input" placeholder="截止日" name="end" id="end">
            <input type="submit" name="sub" class="layui-btn" value="开始搜索" lay-submit="" lay-filter="sreach">
        </form>
    </div>
    
    <table class="layui-table">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>NO</th>
            <th>用户ID</th>
            <th>头像</th>
            <th>手机号码</th>
            <th>姓名</th>
            <th>企业名称</th>
            <th>信息流</th>
            <th>关注</th>
            <th>粉丝</th>
            <th>认证状态</th>
            <th>用户状态</th>
        </thead>
        <tbody>

        <tr>
            <td>
                <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>12345678901</td>
            <td>1</td>
            <td>123456789012345678</td>
            <td>1</td>
            <td>1</td>
            <td class="td-status">1</td>
            <td class="td-status">1</td>
            <td class="td-status">1</td>
        </tr>
        </tbody>
    </table>
    <div class="page">
        <div>

        </div>
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });

    /*用户-停用*/
    function member_stop(obj,id){
        layer.confirm('确认要停用吗？',function(index){

            $.ajax({
                url:'del',
                type:'POST',
                data:{'m_id':did},
                success:function(data){
                    //alert(data);
                    setTimeout(function(){  //使用  setTimeout（）方法设定定时2000毫秒
                        window.location.reload();//页面刷新
                    },500);                 },
                error:function(data){
                    //console.log(data);
                    alert('删除失败');
                }

            })
            layer.msg('已删除!',{icon:1,time:1000});
        });
    }

    function member_del(obj,did){
        layer.confirm('确认要删除吗？',function(index){
            //window.location.href="";
            //发异步删除数据
            $.ajax({
                url:'del',
                type:'POST',
                data:{'m_id':did},
                success:function(data){
                    //alert(data);
                    setTimeout(function(){  //使用  setTimeout（）方法设定定时2000毫秒
                        window.location.reload();//页面刷新
                    },500);                 },
                error:function(data){
                    //console.log(data);
                    alert('删除失败');
                }

            })

            //$(obj).parents("tr").remove();
            layer.msg('已删除!',{icon:1,time:1000});
        });
    }

    function delAll (argument) {

        var data = tableCheck.getData();

        layer.confirm('确认要删除吗？'+data,function(index){
            //捉到所有被选中的，发异步进行删除
            layer.msg('删除成功', {icon: 1});
            $(".layui-form-checked").not('.header').parents('tr').remove();
        });
    }
</script>

</body>

</html>